using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace ThreeThingGame.General_Classes
{
    public class BulletManager
    {
        private List<Bullet> bulletList;

        public BulletManager()
        {

        }

        public void Update()
        {

        }

        public void Draw(SpriteBatch spriteBatch)
        {
            foreach (Bullet currentBullet in bulletList)
            {
                currentBullet.Draw(spriteBatch);
            }
        }

        public bool CheckHitAlien(Vector2 alienPosition)
        {
            foreach (Bullet currentBullet in bulletList)
            {
                if (currentBullet.CheckHitAlien(alienPosition)) return true;
            }
            return false;
        }
    }
}
